Repository navigation
Conversation
|
This PR changes the test suite by +1 test cases (browser +1, unit 0, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
…nse-search-escape
Closing the search unmounted the focused input, so the dialog moved focus to a control whose tooltip took the next Esc and Settings stayed open. Move focus to the Settings surface before the input goes away. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Pressing Escape in the Open-source licenses search (Settings → About → Open-source licenses) cleared the search and also closed Settings. The search's key handler called
preventDefault()but notstopPropagation(), and the Settings dialog's Escape dismiss ignoresdefaultPrevented.The handler now stops the event, so Escape closes only the search, and the next Escape closes Settings. The keybindings search (#35161) and the Files search (#41616) let Escape through when they are empty because those fields are always on screen. This search only appears after you click its icon, so Escape always closes it first, even when it is empty.
A browser test renders the panel inside the real Settings modal. It fails on main, where Settings closes on the first Escape, and passes with the fix. An AI agent (Claude Opus 5.5, Claude Code in T3 Code) ran the test on both revisions,
vp run check:changedand the browser captures below.Setup: Linux, Chromium (T3 Browser panel), light theme, 1280×800, fresh isolated dev state (
vp run dev --no-seed) on each commit. Server addresses are redacted.Steps: Settings → About → Open-source licenses → search icon → type
react→ Escape0fd87d3c2e8)6d28e10b6ca)Links: #35161, #41616
Not shown: desktop runs the same web component. Mobile uses a native search screen with no Escape handling, so it is unchanged.
Generated with Claude Opus 5.5 in T3 Code Nightly